package com.ymatou.iapi.refund.service;

import com.ymatou.iapi.refund.parameter.CreateReturnBillResp;
import com.ymatou.iapi.refund.parameter.GetBuyerReturnBillsResp;
import com.ymt.base.YmatouBaseCall;
import com.ymt.core.tool.FormatUtil;
import com.ymttest.utils.EnvSetup;
/**
*获取用户所有退货退款记录Call
*FreeMaker Template自动生成代码
*/
public class GetBuyerReturnBillsCall extends YmatouBaseCall{
	private static String opurl ="api/Returns/ReturnBill/GetBuyerReturnBills";
	
	public GetBuyerReturnBillsCall() {
		super(EnvSetup.getSystemUrl("refund_iapi"),opurl,"GET","PARAM");
	}
	@Override
	public void addDefHeader() {
		client.addHeader("Accept","text/xml,text/javascript,text/html,application/json");
		client.addHeader("Content-Type", "application/json; charset=UTF-8");
	}
	
	 public String getMsg1()
	    {
	        return getString("Msg");
	    }
	 
	 public String getStatus()
	    {
	        return getString("Status");
	    }
	 
	 public String getbCode()
	  {
	        return getString("bCode");
	  }
	 
	public GetBuyerReturnBillsResp getCallData()
	{
		GetBuyerReturnBillsResp data = null;
		try {
			data = (GetBuyerReturnBillsResp) FormatUtil.GSONToObject(getString("RetData"), GetBuyerReturnBillsResp.class);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return data;
	}
}